{% extends "dynamic/base.html" %}

{% load i18n adminmedia %}

{% block stylesheet %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block bodyclass %}change-list{% endblock %}
{% block coltype %}flex{% endblock %}

{% block extrahead %}{{ block.super }}

<style>
    #content-main {
        width: 100%;
    }

    .lines .number {
        width: 1;
        text-align: right;
    }
</style>
{% endblock extrahead %}

{% block content %}
<div id="content-main">
    <div class="module">

    {% include "dynamic/file_manager_view_buttons.html" %}

    <table width="100%" class="lines">
        <caption>{% trans "PROJECT ROOT" %}{{ current_path }} <a href="../?f={{ parent_path }}">({% trans "parent" %})</a></caption>

        <tr>
            <td>
                {% if current.is_text %}
                <pre>{{ current.content_as_text }}</pre>
                {% endif %}
                
                {% if current.is_image %}
                <a href="../{{ current.view_link }}&format=original"><img src="../{{ current.view_link }}&format=original"/></a>
                {% endif %}
            </td>
        </tr>
    </table>

    {% include "dynamic/file_manager_view_buttons.html" %}

    </div>
</div>
{% endblock content %}

